package com.zmzncs.lmtc.module.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zmzncs.lmtc.module.order.dao.OrderCardDao;
import com.zmzncs.lmtc.module.order.pojo.order_card.OrderCard;
import com.zmzncs.lmtc.module.order.pojo.order_card.OrderCardDTO;
import com.zmzncs.lmtc.module.order.service.OrderCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 任建波
 * @since 2020-10-19
 */
@Service
public class OrderCardServiceImpl extends ServiceImpl<OrderCardDao, OrderCard> implements OrderCardService {

    @Autowired
    OrderCardDao orderCardDao;

    /**
     * 根据订单号查询订单使用的会员卡
     */
    @Override
    public List<OrderCardDTO> getOrderCardByOrderCode(String orderCode) {
        List<OrderCardDTO> orderCardDTOList = orderCardDao.getOrderCardByOrderCode(orderCode);

        return orderCardDTOList;
    }

}
